<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>领取优惠券</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <link href="css/base.css" rel="stylesheet" type="text/css" />
    <link href="css/button.css" rel="stylesheet" type="text/css" />
    <link href="css/icon.css" rel="stylesheet" type="text/css" />
    <link href="css/receive.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="header">
        <img src="image/share.png" class="header-background" />
        <span class="font-red">100元</span>
    </div>
    <div class="header-tip">
        <p class="header-tip-title">送你100元新人优惠券，当你入住小家后</p>
        <p class="header-tip-body">您可以减免<span class="font-red">100元</span>房租</p>
        <p>&nbsp;</p>
    </div>
    <div class="bottom">
        <!-- <div class="input-group">
            <input type="text" class="control-text" placeholder="请输入手机号码" />
            <button>重发</button>
        </div>
        <div class="input-group">
            <input type="text" class="control-text" placeholder="请输入手机验证码" />
        </div> -->
        <p>
            <button class="btn btn-submit sbm yellow">立马领走</button>
        </p>
    </div>
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
    <script src="js/template.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            bee.wxConfig(function() {
                bee.hideAllNonBaseMenuItem();
            }, function(res) {});

            $('body').on('click', '.sbm', function() {
                bee.request({
                    url: '/Member/Index/getRed',
                    data: {
                        id: bee.getQueryString('coupon_id')
                    },
                    success: function(result) {
                        bee.open('receive-success.html');
                    }
                });
            });
        });
    </script>
</body>

</html>
